var page = sm("do_Page");
var root=ui("$");  //$表示当前视图的根UI
var helperOpen = require("helper/open");
var nf = sm("do_Notification");
var communityUtil = require("helper/community");
//设置数据绑定的映射关系
var labelCommunity=ui("labelCommunity");
//设置数据绑定的映射关系
root.setMapping({
	"labelCommunity.tag":"id",
	"labelCommunity.text":"name",
	"labelCommunity.fontColor":	"fontColor" //949EAAFF,FF8040FF
});

//点击一个社区
root.on("touch", function(data){
	var communityId = labelCommunity.tag;
	//communityUtil.communityVisitId(communityId);
	//helperOpen.open("source://view/community/searchIndex.ui");
	page.fire("community_seg_touch", communityId);//点击一个社区segment
});